
//初始值
export const initState = {
    //初始化数据
  //轮播图
  banner:[]
   };
   
   //reducer 修改数据
   export const reducer = (state = initState, action) => {
     switch (action.type) {
       // 新人专享
       case 'changeBanner':
         return {
           ...state,
           banner: action.banner,
         };
       default:
         return state;
     }
   };
   //actionCreators组件派发的动作
   export const actions = {
    changeBanner: (banner) => ({ type: 'changeBanner', banner}),
    
   };
   
   
   